home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interplay's Learn to Program Basic (Review Copy)
/
Learn to Program Basic Review Copy (Interplay)(June 23, 1998).ISO
/
pc
/
ltpbasic
/
refxmpl
/
fileopen.bas
< prev
next >
Wrap
BASIC Source File
|
1998-04-07
|
269b
|
19 lines
Rem write out a file
Rem with some numbers
FileOpen "Test", NEW EXIST
For x = 1 to 10
FileWrite x * 3
Next
FileClose
CLS
Rem now open it and read it
FileOpen "Test"
Rem Read from file until file ends
While FileRead n$
Rem print what we read
print n$
Wend
FileClose